invariant codesの例文
もっと例文: 1 2
- In the beginning, M pre would be empty, but passes like loop-invariant code motion could populate it.
- It can then remove the writes to those variables from the loop, using a process called Loop-invariant code motion.
- The calculation x = y + z and x * x can be moved outside the loop since within they are loop-invariant code, so the optimized code will be something like this:
- This architecture enables well-known optimizations from other programming languages to be used for JavaScript, including type specialization, function inlining, linear-scan register allocation, dead code elimination, and loop-invariant code motion.
- Loop-invariant code motion, which involves moving code out of the loop if that does not change the effect of the program, is not directly related to loop invariants, which are properties of the loop overall.